#+AUTHOR:Joshua Branson
#+TITLE: Sway
#+LATEX_HEADER: \usepackage{lmodern}
#+LATEX_HEADER: \usepackage[QX]{fontenc}
#+OPTIONS: H:10 toc:nil

https://www.youtube.com/watch?v=j1I63wGcvU4

* Sway

may 5 sway and man sway are helpful.

After sway is running, sway [COMMAND] sends commands to sway.

man 7 xkeyboard-config   has lots of options that I can set for sway.  There's are the options that one sets with setxkbmap.

Model Apple laptop apple_laptop, Macbook/Macbook Pro

Options  ctrl:swapcaps


** man 5 sway

set variable value   cool for newer commands

clipboard content  store some content in the clipboard!

layout mode  sets the layout

layout auto   cycles between layouts

* commands I need to fix

M+s  to stack windows

M+w is tab mode


M+C+direction moves the window
* I can try this is debian
https://www.phoronix.com/scan.php?page=news_item&px=Debian-Experimental-Sway
* I should set the default layout to stacking.

I can set this manually via Mod4+s
* debugging sway locking issues/sway icecat issues 

  [[file:/sudo:root@localhost:/var/log/messages::                                                                                                                                      Sep 17 14:17:17 localhost syslogd (GNU inetutils 1.9.4): restart][hard reboot location in /var/log]]


  /var/log/earlyoom.log  says that it has killed emacs before, and  .firefox-wrappe

  [[file:/sudo:root@localhost:/var/log/earlyoom.log::sending SIGTERM to process 17288 ".emacs-27.1-rea": badness 636, VmRSS 4897 MiB][/var/log/earlyoom.log]] 

  Emacs had 5406 Mib --> is 5.6 GB! 
  
  Doing helm-top shows that Emacs memory usage is climbing my 0.1% of
  total system memory per second.  That seems a lot!

  Emacs now is using 20% of system memory! 

  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 21.6% |
  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 21.8% |
  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 22.2% |
  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 22.4% |
  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 22.7% |
  |------------------+-------+-------|
  | [2020-09-17 Thu] | emacs | 22.7% |
  |------------------+-------+-------|
  
  #+BEGIN_SRC org
    <nckx> There's a known memory leak in emacs 27 + helm.  I don't know if it's
         fixed yet or who's to blame.  [15:17]
    <joshuaBPMan> nckx:  ut oh thanks for letting me know!  [15:20]
    <mroh> afaik, the mem leak is only in the helm-ff-cache. You can disable it
         with (setq helm-ff-keep-cached-candidates nil).
    <joshuaBPMan> mroh: thanks for the tip!  [15:21]
  #+END_SRC
